﻿<?php
/*
Template Name: HomePage
*/ 
?>
<?php get_header();?>
	<div id="homeWrapper">
		<?php include(TEMPLATEPATH.'/imageSlider.php');?>
		<?php if(have_posts()):while(have_posts()): the_post() ?>
		<?php the_content('');?>
		<?php endwhile; else:?>
			<p>Không có gì để show !</p>
		<?php endif;?>
		<div id="blogPost">
			<div class="pice_info">
				<h3>Blog POST</h3>
				<?php 
				$blogPost = new WP_query();
				$blogPost->query('showposts=1');
				while($blogPost->have_posts()):$blogPost->the_Post();			
				?>
				<?php $thumb = get_post_meta($post->ID,'hình đại diện',true);?>		
				<img src="<?php bloginfo('stylesheet_directory')?>/timthumb.php?src=<?php echo $thumb;?>&amp;h=100;&amp;w=100;zc=1" alt="avatar"/>
				<p class="content"><?php the_content_rss('&hellip',false,'',60);?></p>
				<a href="<?php the_permalink();?>" class="link_read_more">Xem ngay &hellip;</a>
				<?php endwhile;?>
			</div>
		</div> <!-- end .blogPost-->
		<div style="clear:both;"></div>
	</div> <!-- end #homeWrapper-->
<?php get_footer();?>